home *** CD-ROM | disk | FTP | other *** search
- /* bmdec.h - definitions and declarations for bm */
-
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <console.h>
-
- #define TABS 4
-
- #define K 1024
- #define MAXSIZE 8*K
- #define MAXINT 32767
- #define MINSUB 8
- #define MAXSUB 12
- #define STEP 4
- #define ITERATIONS 1000
-
- #define FALSE 0
- #define TRUE 1
-
- #define READ_MODE "r"
- #define WRITE_MODE "w"
- #define APPEND_MODE "a"
-
- #define MIN2(a, b) (((a) < (b)) ? (a) : (b))
- #define MIN3(a, b, c) ((MIN2((a), (b)) < (c)) ? MIN2((a), (b)) : (c))
- #define MAX2(a, b) (((a) > (b)) ? (a) : (b))
-
- #define POSITIVE(a) ((abs(a) == (a)) ? (a) : abs(a)+127)
-
- #define CHARS 256
-
- #define NIL_POINTER 0L
- #define NIL_STRING "\p"
- #define IGNORED_STRING NIL_STRING
- #define NIL_FILE_FILTER NIL_POINTER
- #define NIL_DIALOG_HOOK NIL_POINTER
- #define VDAT_RES_ID 0
-
- typedef int ALPHABET_ARRAY[CHARS];
- typedef int **INDEX_ARRAY;
- typedef ResType **ResTypeHandle;
-
- void compare(), allocate_array(), compute_jumps(), compute_match_jumps(), error_message(), exit_cleanly(), main();
- char open_file(), random_string();
- int read_array();
-